package com.qd.panda.mapper.commodity;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.qd.panda.model.CommodityPic;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * 商品图片
 *
 * @author sjk
 */
public interface CommodityPicMapper extends BaseMapper<CommodityPic> {
    int deleteAll(@Param("ids")List<String> ids);
    List<String> getAll();
    List<CommodityPic> getAllList(@Param("ids")List<String> ids);
    /**
     * 批量更新
     * @param mList 需要更新的数据
     * @return 成功条数
     */
    int batchUpdate(@Param("mList") List<CommodityPic> mList);

}